package com.itplh.modules.shirorealm.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itplh.modules.shirorealm.pojo.ShiroUser;
import org.apache.ibatis.annotations.Select;

/**
 * @Description:
 * @Author: tanpeng
 * @Date: 2019-07-11 11:28
 * @Version: V1.0
 */
public interface ShiroUserDao extends BaseMapper<ShiroUser> {

    @Select("Select password from shiro_user where username = #{username}")
    String getPassword(String username);

    @Select("Select role from shiro_user where username = #{username}")
    String getRole(String username);

}
